<?php 
class Company_resumeModel extends BaseModel {
	public function select_resume($cid){
		$resume = $this->where(array('cid'=>$cid,'is_del'=>0))->order('dateline desc')->findPage('12');
		foreach($resume['data'] as $k=>&$v){
			$v['resume'] =  D('resume')->where(array('resume_id'=>$v['rid']))->find();
			$v['info'] =  D('member_info')->where(array('uid'=>$v['resume']['uid']))->find();
			$v['info']['face'] = get_img_url($v['info']['face']);
			$v['exper'] =  D('exper')->where(array('uid'=>$v['resume']['uid'],'is_del'=>0))->select();
			
		}
		return $resume;
	}
}
?>